package com.thread.waitnotify;

public class Consumer implements Runnable {

    private Product product = null;

    public Consumer(Product product) {
        this.product = product;
    }

    @Override
    public void run() {

    	for(int i=0; i< 50; i++){
            //每次从data中取一个数据
    		product.consume();
        }

    }

}